package com.py.credit.clean.code;

import org.apache.commons.lang3.StringUtils;

public class ShowYearCheck {
	
	/**公示年限检查
	 * @param data
	 * @param extend
	 * @return
	 */
	public boolean run(String data, String extend) {
		
		if(StringUtils.isBlank(data)){
			return false;
		}else{
			if(data.matches("^([0-9](\\.[0-9]+)?|10)$")){
				  return true;
			}else{
				 return false;
			}
      
	}
}
}

